<!-- File: /app/View/Proyectos/add.ctp -->
            
<?php 
    $this->html->addCrumb(
        $this->Html->tag("i", "", array("class" => "fa fa-file")) . " Proyectos",
        '/Proyectos',
        array("escape" => false)
    );
    $this->html->addCrumb(
        $this->Html->tag("i", "", array("class" => "fa fa-plus")) . " Editar Proyecto",
        '/Proyectos/edit',
        array("escape" => false)
    );
?>
   
<h1>Agregar Proyecto<small> Registra un nuevo Proyecto</small></h1>

<?php
    echo $this->Html->script('ckeditor/ckeditor');
    
    echo $this->Form->create("Proyecto");
    echo $this->Form->input("titulo", array(
        "label" => "Título"
    ));
    echo $this->Html->div(
        "input text required",
        $this->Form->label("contenido", "Contenido") .
        $this->Form->textarea('contenido', array(
            'class' => 'ckeditor'
        ))
    );
    
?>
<div>
    <?php
        $this->Form->button("Gestionar", array(
            "type" => "button",
            "class" => "btn btn-primary agregar",
            "data-toggle" => "modal",
            "data-target" => "#mdlDetalleCurso",
            "data-dia" => 0
        ))
    ?>
</div>
<?php  
    echo $this->Form->button($this->Html->tag("span", "", array("class" => "glyphicon glyphicon-ok")) . " Registrar", array("class" => "btn btn-default"));
    echo $this->Form->end();
    echo $this->Html->link("Regresar a la lista de Proyectos", array("controller" => "Admin", "action" => "Proyectos"));
?>
